<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
  <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=863994 -->

  <rect width="100%" height="100%" fill="lime"/>

  <svg width="640" height="480" xmlns="http://www.w3.org/2000/svg" x="100" y="100" viewBox="0 0 640 480">
    <rect width="100%" height="100%" fill="red"/>
  </svg>
  <svg width="640" height="480" xmlns="http://www.w3.org/2000/svg" x="100" y="100" viewBox="0 0 640 480" transform="translate(0, 0)">
    <rect width="100%" height="100%" fill="lime"/>
  </svg>
</svg>
